package com.internetCafes.spms.web.sys.mapper;

import com.internetCafes.spms.common.base.BaseMapper;
import com.internetCafes.spms.core.annotation.NoTentant;
import com.internetCafes.spms.web.sys.model.UserTokenInfo;
import org.apache.ibatis.annotations.Mapper;

/**
 * 系统用户Token
 * 
 * @author Sunny
 * @email rekeeper2011@hotmail.com
 * @date 2017-03-23 15:22:07
 */
@Mapper
public interface UserTokenInfoMapper extends BaseMapper<UserTokenInfo>{

	@NoTentant
	UserTokenInfo queryByUserId(Long userId);

	@NoTentant
	UserTokenInfo queryByToken(String token);

	@NoTentant
	void save(UserTokenInfo userTokenInfo);

	@NoTentant
	int update(UserTokenInfo userTokenInfo);

}
